/* 求阶乘 */

// 求和
let sum = 0 ;
for( let i = 1 ; i <= 100 ; i++ ){
	sum = sum + i ;
}
console.log( sum );

// 求阶乘
let factorial = 1 ;
for( let i = 10 ; i > 0 ; i-- ) {
	factorial = factorial * i ;
}
console.log( factorial );
